1
MLLMアーキテクチャの進化:視覚中心からマルチセンサリ統合へ
AI012Lesson 7
00:00

MLLMアーキテクチャの進化

マルチモーダル大規模言語モデル(MLLM)の進化は、モダリティ固有の孤立状態から統合表現空間への移行を示しています。ここで、画像、音声、3Dデータといった非テキスト信号が、言語モデルが理解できる形に変換されます。

1. 視覚からマルチセンサリへ

  • 初期のMLLMでは:主に画像-テキストタスク向けにビジョントランスフォーマー(ViT)に焦点が当てられていました。
  • 現代のアーキテクチャでは:次のような音声(例:HuBERT、Whisper)と3Dポイントクラウド(例:Point-BERT)を統合し、本物のクロスモーダル知能を実現しています。

2. 投影ブリッジ

異なるモダリティを言語モデルに接続するためには、数学的なブリッジが必要です:

  • 線形投影:MiniGPT-4などの初期モデルで使われた単純なマッピングです。
    $$X_{llm} = W \cdot X_{modality} + b$$
  • 多層MLP:二層構造(例:LLaVA-1.5)であり、非線形変換を通じて複雑な特徴の優れた一致を実現します。
  • リサンプラー/抽象化ツール:高次元データを固定長のトークンに圧縮する高度なツール(例:Perceiver Resampler(Flamingo)、Q-Former)です。

3. デコード戦略

  • 離散トークン:出力を特定の辞書エントリとして表現します(例:VideoPoet)。
  • 連続埋め込み:「ソフト」な信号を使って、専用の下流ジェネレータ(例:NExT-GPT)を導く方法です。
投影ルール
音や3Dオブジェクトを処理するために、言語モデルがその信号を既存の意味空間に投影する必要があります。そうすることで、ノイズではなく「モダリティ信号」として解釈されるようになります。
alignment_bridge.py
TERMINALbash — 80x24
> Ready. Click "Run" to execute.
>
Question 1
Which projection technique is generally considered superior to a simple Linear layer for complex modality alignment?
Token Dropping
Two-layer MLP or Resamplers (e.g., Q-Former)
Softmax Activation
Linear Projection
Question 2
What is the primary role of ImageBind or LanguageBind in this architecture?
To generate text from images
To compress video files
To create a Unified/Joint representation space for multiple modalities
To increase the LLM context window
Challenge: Designing an Any-to-Any System
Diagram the flow for an MLLM that takes an Audio input and generates a 3D model.
You are tasked with architecting a pipeline that allows an LLM to "listen" to an audio description and output a corresponding 3D object. Define the three critical steps in this pipeline.
Step 1
Select the correct encoder for the input signal.
Solution:
Use an Audio Encoder such as Whisper or HuBERT to transform the raw audio waves into feature vectors.
Step 2
Apply a Projection Layer.
Solution:
Pass the audio feature vectors through a Multi-layer MLP or a Resampler to align them with the LLM's internal semantic space (dimension matching).
Step 3
Generate and Decode the output.
Solution:
The LLM processes the aligned tokens and outputs "Modality Signals" (continuous embeddings or discrete tokens). These signals are then passed to a 3D-specific decoder (e.g., a 3D Diffusion model) to generate the final 3D object.